#include "Stack.h"

void Test()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 7);
	StackPush(&s, 6);
	StackPush(&s, 5);
	StackPush(&s, 4);
	StackPush(&s, 3);
	StackPush(&s, 2);
	StackPush(&s, 1);
	printf("%d\n",StackTop(&s));
	printf("%d\n", StackSize(&s));

	StackPop(&s);
	printf("%d\n", StackTop(&s));
	printf("%d\n", StackSize(&s));
	StackPop(&s);
	printf("%d\n", StackTop(&s));
	printf("%d\n", StackSize(&s));
	StackDestroy(&s);
}

int main()
{
	Test();

	return 0;
}